package com.demo.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;

public class ControllerIterceptor implements Interceptor {
	@Override
	public void intercept(Invocation inv) {
		System.out.println("call ControllerIterceptor");
		inv.invoke();//如果不调用这个方法，则URL中请求的方法不会被执行
		System.out.println("call ControllerIterceptor,finish.");

	}
}
